<%= render 'spree/admin/shared/shipping_tabs' %>

<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(t('spree.admin.tab.shipping')) %>
<% admin_breadcrumb(link_to plural_resource_name(Spree::ShippingMethod), spree.admin_shipping_methods_path) %>
<% admin_breadcrumb(@shipping_method.name) %>

<% content_for :page_actions do %>
<% end %>

<div data-hook="admin_shipping_method_edit_form_header">
  <%= render partial: 'spree/shared/error_messages', locals: { target: @shipping_method } %>
</div>

<div data-hook="admin_shipping_method_edit_form">
  <%= form_for [:admin, @shipping_method] do |f| %>
    <fieldset class="no-border-top">
      <%= render partial: 'form', locals: { f: f } %>

      <div class="clear"></div>

      <div data-hook="admin_shipping_method_edit_form_buttons">
        <%= render partial: 'spree/admin/shared/edit_resource_links' %>
      </div>
    </fieldset>
  <% end %>
</div>
